package com.sdcs.server.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sdcs.server.daoimpl.HomeworkDaoImpl;
import com.sdcs.server.model.Homework;

@Service
public class HomeworkService {
	@Autowired
	private HomeworkDaoImpl homeworkDaoImpl;

	public void delete(String id) {
		homeworkDaoImpl.delete(id);
	}

	public List<Homework> getMyInfo(String uid) {
		return homeworkDaoImpl.getMyInfo(uid);
	}

	public List<Homework> getAll() {
		return homeworkDaoImpl.getAll();
	}
	public void save(Homework object) {
		homeworkDaoImpl.save(object);
	}
}
